﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.views {
    import flash.events.*;
    import flash.geom.*;
    import org.robotlegs.core.*;
    import net.wooga.pets.events.*;
    import net.wooga.pets.views.components.*;
    import net.wooga.pets.constants.*;
    import org.robotlegs.mvcs.*;

    public class HiddenBirdMediator extends Mediator implements IMediator {

        public var hiddenBirdDisplay:HiddenBirdDisplay;

        override public function onRegister():void{
            super.onRegister();
            eventMap.mapListener(this.hiddenBirdDisplay, MouseEvent.CLICK, this.hiddenBird_click);
        }
        private function hiddenBird_click(_arg1:MouseEvent):void{
            eventMap.unmapListener(this.hiddenBirdDisplay, MouseEvent.CLICK, this.hiddenBird_click);
            var _local2:Point = new Point(this.hiddenBirdDisplay.x, this.hiddenBirdDisplay.y);
            dispatch(new InfoEvent(EventConstants.BIRD_CLICKED, null, _local2));
            dispatch(new InfoEvent(EventConstants.PLAY_EFFECT_SOUND, GameConstants.SOUND_GET_MONEY));
        }

    }
}//package net.wooga.pets.views 
